import hikapi
import time

#这一行按你的真实数据修改一下
hik=hikapi.aksk("27800000","aRyPlM2QA57xalkdjfs","192.168.x.y")

hik.connect()
数据={
    "pageNo": 1,
    "pageSize": 10,
    "receiveStartTime": time.strftime('%Y-%m-%dT%H:%M:%S+08:00',time.localtime(time.time()-24*3600)),
    "receiveEndTime": time.strftime('%Y-%m-%dT%H:%M:%S+08:00'),
}
结果=hik.post("/api/acs/v2/door/events",数据)

from pprint import pprint
pprint(结果)
